package com.ctgu.server.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.ctgu.server.dao.entity.FormHistory;
import com.ctgu.server.mapper.FormHistoryMapper;
import com.ctgu.server.service.FormHistoryService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author ctgu
 * @since 2023-06-05
 */
@Service
public class FormHistoryServiceImpl extends ServiceImpl<FormHistoryMapper, FormHistory> implements FormHistoryService {

    public List<FormHistory> selectByUserId(String id){
        LambdaQueryWrapper<FormHistory> lambdaQueryWrapper=new LambdaQueryWrapper<>();
        lambdaQueryWrapper.eq(FormHistory::getUserId,id);
        return this.list(lambdaQueryWrapper);
    }

}
